package com.yuewen.permissioncheck.asm.checker;

/**
 * @author zhanglulu
 */
public class InvokeParam {
  /**
   * 所在 Class
   */
  String curClassName;
  /**
   * 所在方法
   */
  String curMethodName;
  /**
   * 要执行的函数名
   */
  String methodName;
  /**
   * 要执行的函数的在参数
   */
  Object methodParam;
  /**
   * 要执行的函数的参数和返回值
   */
  String methodDesc;
  /**
   * 要执行的函数的 Class
   */
  String methodOwnClass;

  public InvokeParam(String curClassName, String curMethodName, String methodName, Object methodParam, String methodDesc, String methodOwnClass) {
    this.curClassName = curClassName;
    this.methodName = methodName;
    this.methodParam = methodParam;
    this.methodDesc = methodDesc;
    this.methodOwnClass = methodOwnClass;
    this.curMethodName = curMethodName;
  }

  @Override
  public String toString() {
    return "InvokeParam{" +
      "curClassName='" + curClassName + '\'' +
      ", curMethodName='" + curMethodName + '\'' +
      ", methodName='" + methodName + '\'' +
      ", methodParam=" + methodParam +
      ", methodDesc='" + methodDesc + '\'' +
      ", methodOwnClass='" + methodOwnClass + '\'' +
      '}';
  }
}
